import React  from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import '../style/index.less';
import './config';
function init(Layout,id,store){
    if(store){
        ReactDOM.render(
            <Provider store ={store}>
            <Layout />
            </Provider>,
            document.getElementById(id)
        )
    }
    else{
        ReactDOM.render(
            <Layout />
            ,
            document.getElementById(id)
        )
    }
    
}
export default init;